<?php
	$aItemList = array();
	$aItemList = $aContent['docList'];

	// var_dump($aItemList);
?>

<div class="raw-fluid">
	<div class="span12">
		<h3>SPR Doc Manager - List of all submition</h3>
	</div>
</div>

<div class="raw-fluid">
	<div class="span12">
		<?php if (!empty($aItemList)) :?>
				<table class="table table-striped" id="iTableDoneTable">
					<thead>
						<th>Name</th>
						<th>Email</th>
						<th>Comments</th>
						<th>Date</th>
						<th>File</th>
					</thead>

					<tbody>
						<?php foreach($aItemList as $aItem) : ?>
							<tr>
								<td><?php echo $aItem['name']; ?></td>
								<td><?php echo $aItem['email']; ?></td>
								<td><?php echo $aItem['comments']; ?></td>
								<td><?php echo $aItem['date']; ?></td>
								<td>
									<?php
										$aFile = unserialize($aItem['file']);
									?>
									<a href="<?php echo $aFile['url'];?>">Download</a>
								</td>
								
							</tr>
						<?php endforeach; ?>
					</tbody>
				</table>
		<?php endif; ?>
	</div>
</div>
